package com.fosung.frame.modules.approve.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.fosung.frame.common.service.CrudService;
import com.fosung.frame.modules.approve.dao.DzbStatisticDao;
import com.fosung.frame.modules.approve.entity.PartyStatistic;
import com.fosung.frame.modules.approve.entity.PersonStatistic;

/*
 * 基层党组织　首页　统计分析
 */
@Service
@Transactional(readOnly = true)
public class DzbStatisticService extends CrudService<DzbStatisticDao, PartyStatistic> {

	/**
	 * 查询党组织积分排名
	 * 
	 * @param partyStatistic
	 * @return
	 */
	public List<PartyStatistic> findPartyPmList(PartyStatistic partyStatistic) {
		return dao.findPartyPmList(partyStatistic);
	}

	/**
	 * 首页 查询党员积分排名
	 * 
	 * @param partyScoreRanking
	 * @return
	 */
	public List<PersonStatistic> findPersonPmList(PersonStatistic personStatistic) {
		return dao.findPersonPmList(personStatistic);
	}

	public PartyStatistic getScorebyOrgid(PartyStatistic partyStatistic) {
		return dao.getScorebyOrgid(partyStatistic);
	}

}
